package com.yaoxuguang.concurrence.wait_notify.join.demo;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.wait_notify.join
 * @Description: join方法
 * @date 2018年12月24日11:43
 */
public class JoinThread extends  Thread{
    @Override
    public void run() {
        try {
            int secondValue = (int) (Math.random()*1000);
            System.out.println(secondValue);
            Thread.sleep(secondValue);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
